#ifndef _HIREDISUTILS_H_ 
#define _HIREDISUTILS_H_

#include "hiredis.h"

extern redisContext *globalRedisCtx;

#define REDIS_STRING 	REDIS_REPLY_STRING
#define REDIS_ARRAY	REDIS_REPLY_ARRAY
#define REDIS_INTEGER	REDIS_REPLY_INTEGER
#define REDIS_NULL	REDIS_REPLY_NIL
#define REDIS_STATUS	REDIS_REPLY_STATUS	/* return status information */
#define REDIS_ERROR	SREDIS_REPLY_ERROR 

redisContext* redis_connect(char *ip, int port);
redisReply* redis_command(char *commandBuf);

#endif
